Skip to content

feat: add in junit pioneer for testing #904

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 21, 2025

Conversation

codingsemen
Copy link
Contributor

No description provided.

@codingsemen codingsemen requested a review from a team as a code owner May 21, 2025 06:56
Copy link
Contributor

Next minor release will be 4.6.0, Show Release Notes

4.6.0 (2025-05-21)

Features

  • add in junit pioneer for testing (1db156f)

Copy link
Contributor

github-actions bot commented May 21, 2025

Test Results

  234 files  ±0    234 suites  ±0   8m 8s ⏱️ -8s
1 150 tests  - 4  1 142 ✅  - 4   8 💤 ±0  0 ❌ ±0 
2 336 runs  ±0  2 316 ✅ ±0  20 💤 ±0  0 ❌ ±0 

Results for commit 8fa839f. ± Comparison against base commit aff1e01.

This pull request removes 4 tests.
org.sdase.commons.spring.boot.metadata.context.MetadataContextMergeIntegrationTest ‑ [4] {tenant-id=[t-c], processes=[p-c1, p-c2]}, {tenant-id=[], processes=[p-n3, p-n4]}, EXTEND, {tenant-id=[t-c], processes=[p-c1, p-c2, p-n3, p-n4]}
org.sdase.commons.spring.boot.metadata.context.MetadataContextMergeIntegrationTest ‑ [5] {tenant-id=[t-c]}, {processes=[p-n]}, EXTEND, {tenant-id=[t-c], processes=[p-n]}
org.sdase.commons.spring.boot.metadata.context.MetadataContextMergeIntegrationTest ‑ [8] {tenant-id=[t-c]}, {tenant-id=[t-n], processes=[p-n]}, KEEP, {tenant-id=[t-c], processes=[p-n]}
org.sdase.commons.spring.boot.metadata.context.MetadataContextMergeIntegrationTest ‑ [9] {tenant-id=[t-c], processes=[p-c]}, {tenant-id=[t-n]}, REPLACE, {tenant-id=[t-n], processes=[p-c]}

♻️ This comment has been updated with latest results.

fix typo
fix unused dependency version declaration
@codingsemen
Copy link
Contributor Author

codingsemen commented May 21, 2025

I want to discuss 2 further things, what's the goto for declaring version in

ext {
  bouncycastleVersion = '1.80'
  logbackContribVersion = '0.1.5'
  springBootVersion = '3.4.5'
  springCloudVersion = '2024.0.1'
  scalaVersion = '2.13.16'
  swaggerCoreVersion = '2.2.32'
  victoolsVersion = '4.38.0'
}

vs declaring it directly on the import

api 'org.slf4j:slf4j-api:2.0.17'

Kind of confusing why we have both. Would like to stick to one way or another.
Also is there a convention on how to use String Literals in groovy?
I see a lot of variation between using '-text-' and "-text-" - i am a huge fan of conventions and uniform style but it's obviously not a dealbreaker to have both.

Copy link

mibutec
mibutec previously approved these changes May 21, 2025
@mibutec mibutec dismissed their stale review May 21, 2025 12:01

Some new discussion-topic was added

@mibutec
Copy link
Contributor

mibutec commented May 21, 2025

I don't know if there is a general rule on this, so I can only speak for myself:

I prefer the direct approach for better readability

api 'org.slf4j:slf4j-api:2.0.17'

But if there are multiple dependencies with the same version I switch to the ext approach to ensure both libs are in sync

ext {
  slf4jVersion = '2.0.17'
}

api "org.slf4j:slf4j-api:${slf4jVersion}"
api "org.slf4j:jcl-over-slf4j:${slf4jVersion}"

This might also explain why sometimes singlequotes and sometimes doublequotes are used. In singlequotes ${...}won't get resolved

@codingsemen codingsemen merged commit 854af88 into main May 21, 2025
16 checks passed
@codingsemen codingsemen deleted the feat/SCM-1409-add-junit-pioneer branch May 21, 2025 12:55
@JoergSiebahn
Copy link
Contributor

I don't know if there is a general rule on this, so I can only speak for myself:

I prefer the direct approach for better readability

api 'org.slf4j:slf4j-api:2.0.17'

But if there are multiple dependencies with the same version I switch to the ext approach to ensure both libs are in sync

ext {
  slf4jVersion = '2.0.17'
}

api "org.slf4j:slf4j-api:${slf4jVersion}"
api "org.slf4j:jcl-over-slf4j:${slf4jVersion}"

This might also explain why sometimes singlequotes and sometimes doublequotes are used. In singlequotes ${...}won't get resolved

Exactly like this, preferred is single quotes and direct specification in the dependency and when there are multiple dependencies of a library that need or should have the same aligned version and do not have a bom managing the versions, extract the version to a property. However, this may not be kept consistent over time, e.g. otel deps had a lot of changes regarding what is managed in the bom and what has aligned versions that diverged later, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants